repo: Fix temporary directory allocation
authorAlexander Larsson <alexl@redhat.com>
Fri, 22 Apr 2016 07:29:59 +0000 (09:29 +0200)
committerColin Walters (automation) <walters+githubbot@verbum.org>
Fri, 22 Apr 2016 08:46:53 +0000 (08:46 +0000)
commitad019def9a43c0cf10526f575a32f84c0c71ee78
treeb67b539b415f40864acd7f0e67eb7e2e39835585
parent8609cb036b935ce942214e9fdee6d90de0a210af
repo: Fix temporary directory allocation

We looked for and locked old temporary directories so we can
reuse them if not in use. However, once we found one that
we can reuse we didn't stop iterating, and eventually we
reached the end. This means we can lock multiple dirs.

Closes: #273
Approved by: giuseppe
src/libostree/ostree-repo.c